{{template "header"}}

<title xmlns="http://www.w3.org/1999/html">首页-beego 博客</title>
</head>

<body >

<div class="navbar navbar-default navbar-fixed-top">
    <div class="container">
    {{template "navbar" .}}
    </div>

</div>

<div style="height: 50px"></div>

<div class="container">

        <div class="col-xs-8 col-sm-6">
        {{range .Topice}}
            <div class="page-header">
                <h1><a href="/topic/view/{{.Id}}">{{.Title}}</a></h1>
                <h6 class="text-muted">文章发表于{{.Created}}，共有{{.Views}}人浏览.{{.ReplyCount}}个评论</h6>
                <p>
                {{.Content}}
                </p>
            </div>
        {{end}}
        </div>

        <div class="col-xs-4 col-md-4">
            <h3>文章分类</h3>
            <ul>
            {{range .Category}}
               <li style="font-size: 20px;color: #8c8c8c">
                   <a href="/?cate={{.Title}}">{{.Title}}</a>
               </li>
            {{end}}
            </ul>
        </div>
</div>


<script type="text/javascript" src="http://cdn.staticfile.org/jquery/3.2.1/jquery.js"></script>
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>

</body>
</html>